﻿
function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}
Ext.Loader.setConfig({
    enabled: true,
    paths: {
        'util': '/Content/util',
        'Demo.view': '/Content/view/',
        'Demo.model': '/Content/model',
        'Demo.store': '/Content/store',
        'Demo.controller': '/Content/controller'
    }
});

Ext.application({
    extend: 'Ext.app.Application',

    models: [
        // TODO: add global / shared modes here
    ],
    stores: [
        // TODO: add global / shared stores here
    ],
    views: [
        // TODO: add global / shared views here
        'util.common'
    ],
    controllers: [],
    name: 'Demo',

    launch: function () {


        //20190930新权限
        IniPower("Content");

        //加载主界面
        Ext.create('Demo.view.Viewport', { renderTo: Ext.getBody() });
    }

});